-
-
Notifications
You must be signed in to change notification settings - Fork 474
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(linter): no-unknown-property for eslint-plugin-react #1875
feat(linter): no-unknown-property for eslint-plugin-react #1875
Conversation
XantreDev
commented
Jan 2, 2024
•
edited
Loading
edited
- tests: https://github.com/jsx-eslint/eslint-plugin-react/blob/master/tests/lib/rules/no-unknown-property.js
- docs: https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-unknown-property.md
- code: https://github.com/jsx-eslint/eslint-plugin-react/blob/master/lib/rules/no-unknown-property.js
CodSpeed Performance ReportMerging #1875 will not alter performanceComparing Summary
|
b10d4ad
to
49286f8
Compare
@camc314 Can u review it please? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me.
I wonder whether some of the hashmaps -> vec strings should be converted to phf hash maps to improve performance.
e.g.
static ref ATTRIBUTE_TAGS_MAP: HashMap<&'static str, Vec<&'static str>> = HashMap::from([
would become
const ATTRIBUTE_TAGS_MAP: Map<&'static str, Map<&'static str, bool>> = phf_map! {
/* entries */
};
The benchmarks show no perf regression, but currently, it doesn't look like we benchmark any large react codebases however this should be addressed by #1884.
I think replacement most of hash maps to compile time |
f76ae11
to
4125dd8
Compare
Check Unused Dependencies have failed, because of unused rayon in language server, so I was forced to remove it from deps to pass CI |
yeah that's what i mean - thank you |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
looks like a false positive #1903 seems to have the same degregation |
) Based on: - tests: https://github.com/jsx-eslint/eslint-plugin-react/blob/master/tests/lib/rules/no-unknown-property.js - docs: https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-unknown-property.md - code: https://github.com/jsx-eslint/eslint-plugin-react/blob/master/lib/rules/no-unknown-property.js